#region Imports Directives

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Quartz;

#endregion

namespace ScenarioFramework.WorkflowEngine.Events
{
    public class Timeout : TimeoutBase
    {
        public Timeout()
        {
        }

        override public Trigger GetTrigger(string EventAction)
        {
            //TODO: le caratteristiche del trigger andrebbero estrapolate da item
            Trigger trigger = Quartz.TriggerUtils.MakeSecondlyTrigger();
            trigger.StartTimeUtc = DateTime.Now.ToUniversalTime();
            return trigger;
        }

        override public JobDetail GetJobDetail(string EventAction)
        {
            //TODO: le caratteristiche del trigger andrebbero estrapolate da item
            JobDetail jobDetail = new JobDetail();
            jobDetail.JobType = typeof(ScenarioFramework.WorkflowEngine.Events.Jobs.ActivityJob);

            /*jobDetail.JobDataMap[Jobs.ScenarioJob.CLASSID_TAG] = 123;               //TODO:
            jobDetail.JobDataMap[Jobs.ScenarioJob.PROCESSXML_TAG] = item.ProcessXML;
            jobDetail.JobDataMap[Jobs.ScenarioJob.WAPIXML_TAG] = "l'xml della WAPI"; //TODO:
             */

            return jobDetail;
        }

    }
}
